﻿using Mt.Site.Core.Navigations.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Modules.Dto
{
    public class CreatePageViewDto
    {
        [Required]
        [StringLength(PageView.MaxNameLength)]
        public string Name { get; set; }

        public bool IsActive { get; set; }

        public int PageSize { get; set; }

        /// <summary>
        /// 正文页面
        /// </summary>
        [Required]
        [StringLength(PageView.MaxBodyViewLength)]
        public string BodyView { get; set; }

        /// <summary>
        /// (用于拉取备选数据)
        /// </summary>
        public DeviceType PcOrMobile { get; set; }

        /// <summary>
        /// 对应的前台栏目<see cref="FrontEndPage"/>(用于拉取备选数据)
        /// </summary>
        public Guid FrontEndPageId { get; set; }
    }
}
